<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>修改用户类型</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../../component/elementUI/index.css">
    <link rel="stylesheet" href="../../../style/index.css">
</head>

<body>
    <div id="app" class="minWidth">
        <el-form :model="form" ref="contract" inline-message="true" style="width: 100%">
            <div class="table_titel">
                <div class="titel">企业信息</div>
                <div class="operation">
                    <el-button v-if="!isEdit" type="danger" size="small" @click="isEdit =!isEdit">取消</el-button>
                    <el-button :type="isEdit?'primary':'success'" size="small" @click="handleEdit">{{isEdit?'修改':'保存'}}</el-button>
                </div>
            </div>
            <el-descriptions :column="1" border size="small">
                <el-descriptions-item label="图片logo">
                    <el-form-item prop="pic">
                        <!-- <el-upload :limit="1" :file-list="fmfileList"
                            :class="['upload_file', {'none': fmfileList?.length }]" list-type="picture-card"
                            :on-remove="handleRemove" :before-upload="handleBeforeUpload" :on-change="chandleChange">
                            <i class="el-icon-plus"></i>
                        </el-upload> -->
                        <!-- <el-image v-if="isEdit"  class="el-upload-list__item-thumbnail" style="width: 148px; height: 148px" 
                            :src="'https://www.kdddy.cn/Image/'+form.Enterprise_Logo" fit="contain"></el-image> -->
                       <yl-upload :disabled="isEdit" v-model="form.Enterprise_Logo" :unslider="true"
                            :base="'https://www.kdddy.cn/Image/'"></yl-upload>
                            
                            <!-- {{'https://www.kdddy.cn/Image/'+form.Enterprise_Logo}} -->
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="营业执照">
                    <el-form-item prop="pic">
                        <yl-upload :disabled="isEdit" v-model="form.Picture_URL" :unslider="true"
                            :base="'https://www.kdddy.cn/Image/'"></yl-upload>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="企业名称">
                    <el-form-item prop="Enterprise_Name">
                        <el-input :disabled="isEdit" v-model.trim="form.Enterprise_Name" placeholder="请输入企业名称"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="企业地址">
                    <el-form-item prop="Enterprise_Address">
                        <el-input :disabled="isEdit" v-model.trim="form.Enterprise_Address" placeholder="请输入企业地址"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="企业电话">
                    <el-form-item prop="Enterprise_Phone">
                        <el-input :disabled="isEdit" v-model.trim="form.Enterprise_Phone" placeholder="请输入企业电话"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="联系人">
                    <el-form-item prop="Enterprise_Contacts">
                        <el-input :disabled="isEdit" v-model.trim="form.Enterprise_Contacts" placeholder="请输入联系人"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="联系人电话">
                    <el-form-item prop="Enterprise_Contacts_Mobile">
                        <el-input :disabled="isEdit" v-model.trim="form.Enterprise_Contacts_Mobile" placeholder="请输入联系人电话"></el-input>
                    </el-form-item>
                </el-descriptions-item>
            </el-descriptions>
            <div class="table_titel">
                <div class="titel">企业账户</div>
                <div class="operation" v-if="!isEdit">
                    <el-button type="primary" size="small" @click="handleAdd">添加</el-button>
                    <el-button type="danger" size="small" @click="handleRemove1">删除</el-button>
                </div>
            </div>
            <el-descriptions :column="2" border size="small" v-for="(item,index) in form1.filter(item => item.Row_Status != '1')" :key="index">
                <el-descriptions-item label="开户行">
                    <el-form-item prop="Bank_Name">
                        <el-input :disabled="isEdit" v-model.trim="item.Bank_Name" placeholder="请输入开户行"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="账户">
                    <el-form-item prop="Account_Number">
                        <el-input :disabled="isEdit" v-model.trim="item.Account_Number" placeholder="请输入账户"></el-input>
                    </el-form-item>
                </el-descriptions-item>
            </el-descriptions>
            <!-- <el-form-item class="form-operation">
                <el-button @click="window.history.back()">返回</el-button>
                <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
            </el-form-item> -->
        </el-form>
    </div>
    <script type="text/javascript" src="../../../config/config.js"></script>

    <script type="text/javascript" src="../../../utils/jquery-3.6.0.min.js"></script>
    <script type="text/javascript" src="../../../utils/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../../utils/vue.min.js"></script>
    <script type="text/javascript" src="../../../component/component.js"></script>
    <script type="text/javascript" src="../../../component/elementUI/index.js"></script>
    <script type="text/javascript" src="../../../utils/compressor.js"></script>
    <script type="text/javascript" src="../../../utils/utils.js"></script>
    <script type="text/javascript" src="../../../utils/ID_Validity.js"></script>
    <script type="text/javascript" src="./js/edit1.js"></script>
</body>

</html>